<div class="caixa">
	<div class="topobox cinza">
		Adicionar Professor na disciplina
	</div>
	<div class="meiobox">
		<form name="formprofessordisciplina" id="formprofessordisciplina" method="post" action="<?php echo $this->base ?>/turma/salvarprofessordisciplina">
		<div class="campos">
			<label>Professor</label>
			<select id="idprofessor" name="idprofessor">
				<option value="">-- Selecione --</option>
				<?php foreach($this->professor as $key){?>
					<option value="<?php echo $key['idprofessor']?>" <?php if($this->professordisciplina['idprofessor']==$key['idprofessor']){?> selected="selected" <?php }?>><?php echo $key['professor']?></option>
				<?php }?>
			</select>
		</div>
		<input type="hidden" name="iddisciplina" id="iddisciplina" value="<?php echo $this->iddisciplina?>">
		<input type="hidden" name="idturma" id="idturma" value="<?php echo $this->idturma?>">
		
		<?php if(sizeof($this->professordisciplina)>0){?>
			<input type="hidden" name="idprofessordisciplina" id="idprofessordisciplina" value="<?php echo $this->professordisciplina['idprofessordisciplina']?>">
		<?php }?>
		
		<input type="submit" value="Salvar" class="botao"/>
	</div>
</div>